﻿
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>优越店长-商户管理系统</title>

    <link href="~/layui/css/layui.css" rel="stylesheet" />

    <link href="~/Content/extend.css" rel="stylesheet" />

    <script src="~/scripts/jquery-1.10.2.js"></script>
    <script src="~/scripts/Common/Base.js"></script>
    <script src="~/scripts/Common/RequestManager.js"></script>
    <script src="~/scripts/Common/ToolManager.js"></script>
    <script src="~/scripts/layer/layer.js"></script>
    <script src="~/layui/layui.js"></script>
    <style>
        .layui-nav-item a:hover {
            background-color: cornflowerblue !important;
            color: #B7BAE2 !important;
        }

        .layui-bg-black .layui-nav-child a {
            padding-left: 37px;
        }
    </style>
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo" style="width: 342px;">商户管理系统<img style="height: 60px; width: 150px;" src="~/Images/logo_head.png"/></div>
            <!-- 头部区域（可配合layui已有的水平导航） -->
            @*<ul class="layui-nav layui-layout-left">
                    <li class="layui-nav-item"><a href="">控制台</a></li>
                    <li class="layui-nav-item"><a href="">商品管理</a></li>
                    <li class="layui-nav-item"><a href="">用户</a></li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">其它系统</a>
                        <dl class="layui-nav-child">
                            <dd><a href="">邮件管理</a></dd>
                            <dd><a href="">消息管理</a></dd>
                            <dd><a href="">授权管理</a></dd>
                        </dl>
                    </li>
                </ul>*@
            <ul class="layui-nav layui-layout-right">
                
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        欢迎:@(UserContext.User.ShopAdminType == 1 ? UserContext.User.LoginName : UserContext.User.ShopLoginRoleModel.Account)
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="/ShopAdmin/ShopAdmin">基本资料</a></dd>
                        <dd><a href="/Home/Recharge">续费/充值</a></dd>
                        <dd><a target="_blank" href="/Decorate/Index">商城首页装修</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:void(0);">账户余额:@UserContext.User.CanUserAmount</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:void(0);" id="btn_cashOutIng">提现</a></dd>
</dl>
                </li>
              
                <li class="layui-nav-item"><a href="/Home/Recharge">购买/续费</a></li>
                <li class="layui-nav-item">
                    <a href="javascript:void(0);">文档</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/Home/OptionWord" target="_blank">操作文档</a></dd>
                        <dd><a href="/Home/Questions" target="_blank">常见问题</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:void(0);" id="btn_exit">退出</a></li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll" style="">
                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">

                    <li id="map_home" class="layui-nav-item layui-this" style="">
                        <a href="/Home/Index" lay-direction="2">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>首页</cite>
                        </a>
                    </li>

                    @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityModuleEnum>(SuperiorCommon.AuthorityModuleEnum.SytemManager))
                    {
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>系统管理</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.RoleList))
                                {
                                    <dd id="map_RoleList"><a href="/ShopAdmin/RoleList">角色权限管理</a></dd>
                                }

                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.ShopAccountList))
                                {
                                    <dd id="map_ShopAccountList"><a href="/ShopAdmin/ShopRoleAccountList">员工账号管理</a></dd>
                                }

                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.ShopAdmin))
                                {
                                    <dd id="map_ShopAdmin"><a href="/ShopAdmin/ShopAdmin">资料管理</a></dd>
                                }

                                @if (UserContext.User.ShopAdminType == 1)
                                {
                                    <dd id="map_EditPassWord"><a href="/ShopAdmin/EditPassWord">修改密码</a></dd>
                                }




                            </dl>
                        </li>

                    }
                    @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityModuleEnum>(SuperiorCommon.AuthorityModuleEnum.MallManager))
                    {
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-website"></i>
                                <cite>商城管理</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.ShopAppList))
                                {
                                    <dd id="map_shopapp"><a href="/ShopApp/List">商城管理</a></dd>
                                }
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.Decorate))
                                {
                                    <dd id="map_decorate"><a target="_blank" href="/Decorate/Index">商城装修</a></dd>
                                }

                                @if (UserContext.User.ShopAdminType == 1)
                                {
                                    <dd id="map_buyList"><a href="/ShopApp/RechargeList">商城充值记录</a></dd>
                                }



                            </dl>
                        </li>
                    }

                    @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityModuleEnum>(SuperiorCommon.AuthorityModuleEnum.ProductManager))
                    {
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-cart-simple"></i>
                                <cite>商品管理</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.ProductMenu))
                                {
                                    <dd id="map_menu"><a href="/Product/Menu">分类管理</a></dd>
                                }

                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.ProductList))
                                {
                                    <dd id="map_product"><a href="/Product/List">商品管理</a></dd>
                                }

                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.ProductBannerList))
                                {
                                    <dd id="map_banner"><a href="/Product/BannerList">首页轮播图管理</a></dd>
                                }
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.SpecialPlace))
                                {
                                    <dd id="map_SpecialPlace"><a href="/Product/SpecialList">商品专场/专区管理</a></dd>
                                }
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.SearchWord))
                                {
                                    <dd id="map_SearchWord"><a href="/SearchWord/List">搜索词管理</a></dd>
                                }


                            </dl>
                        </li>
                    }
                    @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityModuleEnum>(SuperiorCommon.AuthorityModuleEnum.UserManager))
                    {
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-username"></i>
                                <cite>用户管理</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.UserList))
                                {
                                    <dd id="map_user"><a href="/User/List">用户列表</a></dd>
                                }



                            </dl>
                        </li>
                    }
                    @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityModuleEnum>(SuperiorCommon.AuthorityModuleEnum.OrderManager))
                    {
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-list"></i>
                                <cite>订单管理</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.OrderList))
                                {
                                    <dd id="map_order"><a href="/Order/List">订单管理列表</a></dd>
                                }

                                <dd id="map_comment"><a href="/Order/CommentList">评价管理</a></dd>


                            </dl>
                        </li>

                    }

                    @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityModuleEnum>(SuperiorCommon.AuthorityModuleEnum.MarketingManager))
                    {
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-component"></i>
                                <cite>营销管理</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.FullAmountSendSet))
                                {
                                    <dd id="map_FullAmountSendSet"><a href="/Marketing/FullAmountSendSet">满额包邮</a></dd>
                                }

                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.CouponList))
                                {
                                    <dd id="map_CouponList"><a href="/Marketing/CouponList">优惠券管理</a></dd>
                                }

                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.UserCouponList))
                                {
                                    <dd id="map_UserCouponList"><a href="/Marketing/UserCouponList">领取优惠券列表</a></dd>
                                }



                            </dl>
                        </li>
                    }
                    @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityModuleEnum>(SuperiorCommon.AuthorityModuleEnum.SetManager))
                    {
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-set-fill"></i>
                                <cite>设置</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                @if (AuthorityController.IsHasAuthority<SuperiorCommon.AuthorityMenuEnum>(SuperiorCommon.AuthorityMenuEnum.ShippingTemplateList))
                                {
                                    <dd id="map_set"><a href="/Set/ShippingTemplateList">运费模板管理</a></dd>
                                }



                            </dl>
                        </li>
                    }
                  
                        <li class="layui-nav-item" style="">
                            <a href="javascript:;" lay-direction="2">
                                <i class="layui-icon layui-icon-rmb"></i>
                                <cite>提现管理</cite>
                                <span class="layui-nav-more"></span>
                            </a>
                            <dl class="layui-nav-child">
                                    <dd id="map_CashOutList"><a href="/ShopAdmin/CashOutList">提现管理</a></dd>
                               



                            </dl>
                        </li>
                   

                </ul>
            </div>
        </div>

        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div style="padding: 15px;">
                @RenderBody()
            </div>
        </div>

        <div class="layui-footer" style="text-align:center;">
            <!-- 底部固定区域 -->
            官方微信公众号yydz1118,请各位商户务必关注！客服微信:wang324596966,客服QQ:324596966,咨询qq3群:834217212
        </div>
    </div>

    <script>
        //JavaScript代码区域
        layui.use('element', function () {
            var element = layui.element;

        });
    </script>
</body>
</html>
<script src="~/scripts/Layout/Layout.js"></script>
<script src="~/scripts/Common/MapRotute.js"></script>


<script>
    LayoutClass.Instance.Init();
    Map.Instance.BindMap();
</script>